using System;
using System.Collections.Generic;
using System.Text;
using Coding;

namespace Index.PostingLists.Entry
{

    /// <summary>
    /// element listy dla indeksu zwyklego
    /// </summary>
    public class FrequencyEntry: IEquatable<FrequencyEntry>
    {
        private int document_id;
        private int freq;

        public FrequencyEntry(int document_id, int freq)
        {
            this.document_id = document_id;
            this.freq = freq;
        }

        public int DocumentId
        {
            get
            {
                return document_id;
            }
        }

        public int Freq
        {
            get
            {
                return freq;
            }
        }

        public bool Equals(FrequencyEntry other)
        {
            return (other.document_id.Equals(this.document_id)) && (other.freq.Equals(this.freq));
        }

    }
}
